package com.yex.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yex.entity.IntegralEntity;
import org.apache.ibatis.annotations.Param;

/**
 * 积分钱包
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-01-08 08:52:46
 */
public interface IntegralDao extends BaseMapper<IntegralEntity> {

    int insertWallet(IntegralEntity integralEntity);

    int updateFrozen(IntegralEntity integralEntity);

    int updateUnFrozen(IntegralEntity integralEntity);

    int updateAdd(IntegralEntity integralEntity);

    int updateReduce(IntegralEntity integralEntity);

    int updateReduceFrozen(IntegralEntity integralEntity);

    IntegralEntity selectByUserId(@Param("userId") Integer userId);
}
